package com.yonyou.util;

import java.io.File;
import javax.swing.filechooser.FileFilter;

public class ExcelFileFilter extends FileFilter
{
  public String getDescription()
  {
    return "*.xls;";
  }

  public boolean accept(File file) {
    String name = file.getName();
    return (file.isDirectory()) || (name.toLowerCase().endsWith(".xls"));
  }
}